<?php
include "sql.php";
$xuehao=$_COOKIE['xuehao'];
$cha=$con->query("select * from userorder where xuehao='{$xuehao}' and mzhuangtai='1' order by id desc");
$res=[];
?>



<!DOCTYPE html>
<!-- saved from url=(0044)https://xjistedu.0xiao.com/express/myexpress -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>我发出的快递服务•新疆大学科学技术学院阿克苏校区</title>
    <meta name="Description" content="我发出的快递服务•新疆大学科学技术学院阿克苏校区">
    <meta name="Keywords" content="快递服务,代取快递,寄出快递">
    
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<link rel="stylesheet" type="text/css" href="person/base-e9517835bb.css">
<link rel="stylesheet" type="text/css" href="person/home-893f3586a9.css">
<link rel="stylesheet" type="text/css" href="person/index_iconfont-e17e724708.css">
    <link rel="stylesheet" type="text/css" href="person/express-791a7eba15.css">
</head>
<body data-mobile="1" data-iphone="1" data-weixin="0" data-two_url="xjistedu" data-badge="/0xiao/upload/site_badge/image/20181002/5bb31a1825077.jpg">

<div class="mobi_head" style="position:fixed;background:#2196f39c; color: black">
    <a class="left nou head_back" href="index.php" style="background: url(back.png) center center no-repeat;
    background-size: 50%;">&nbsp;</a>
    <h1 class="center font16 fontn">我的快递</h1>
</div>
<p style="height:42px;">&nbsp;</p>

<div class="center" style="padding:15px 0 5px" data-user_id="2807158" id="user_info">

    <h3>全部订单</h3>
</div>

<ul class="express_list" id="express_mine" style="width: 95%; margin: 0 auto; 8px; background: none">

    <?php
    $i=0;
    foreach($cha as $val){
    $res[]=$val;


    echo    '<li data-express_order_id="353424" style="background: none;border-radius: 8px; background: #03a9f4a3">';
    echo    '<img class="left express_head" src="person/132">';
    echo    '<div style="padding-left:50px;">';
    echo     '<h2 class="ove express_title"><b class="mr10 orange">代取快递';
    echo     '<p class="express_address">'. $res[$i]['username'].'<a class="ml10 blue" href="tel:'. $res[$i]['tel'].'">'. $res[$i]['tel'].'</a><br>学生宿舍'. $res[$i]['lou'].'号楼-'. $res[$i]['sushe'].'</p>';
    echo     '<div class="relative ovh express_content" style="background: none; border: 1px solid teal;border-radius: 7px;">'. $res[$i]['xinxi'].'</div>';
    echo     '<p class="express_notice"></p>';
    if($res[$i]['guige']==1){

        $guige="大件送达宿舍";
    }
    if($res[$i]['guige']==2){

        $guige="小件送达宿舍";
    }
    if($res[$i]['guige']==3){

        $guige="顺丰送达宿舍";
    }
    if($res[$i]['guige']==4){

        $guige="京东送达宿舍";
    }
    if($res[$i]['mzhuangtai']==1){
        $mzhuangtai="已支付";
    }else{
        $mzhuangtai="未支付";
    }


    echo     '<p>'.$guige.'(1单)<br><em class="red">¥ '. $res[$i]['money'].'</em><a class="right nou green">'.$mzhuangtai.'</a></p>';
    echo     '<p class="clo9" style="padding-top:5px;border-top:1px dotted #CCC">提交：'.date('Y-m-d h:i:s',$res[$i]['ctime'] ) .'</p>';
    echo     '<p class="blue">快递员：';
    echo     '<a class="nou blue active_t" href="tel:15622842080"><img width="18px" height="18px" src="person/tel-1d93110dc0.png"></a>';
    echo     '</p>';
    if($res[$i]['zhuangtai']==0){
        $otime="待接单";
       $ptime="待接单";
    }elseif($res[$i]['zhuangtai']==1){
        $otime="待派货";
       $ptime="待派货";
    }else{
         $otime="完成时间".date('Y-m-d h:i:s',$res[$i]['otime']);
       $ptime="已派件";
    }
    echo     '<p class="green">'.$otime.'</p>';
    echo     '</div>';
    echo     '<p class="express_send_state" style="color:#99CC66">'.$ptime.'</p>';
    echo     '</li>';
    $i++;

    }
    

    ?>
    
    
</ul>

<br><br><br>



</body></html>